x86/HVM: fold both instances of looking up a hvm_ioreq_vcpu with a request pending
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:51:07 +0000 (17:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:51:07 +0000 (17:51 +0200)
commit1745806a4153da200e340b319cabf3d4ad9d5575
tree766d64b6bb2516ea0c2cebd92b759f3448a0032b
parent32fa4ec97196678ba39e6746a9ba21d3f57ba853
x86/HVM: fold both instances of looking up a hvm_ioreq_vcpu with a request pending

It seems pretty likely that the "break" in the loop getting replaced in
handle_hvm_io_completion() was meant to exit both nested loops at the
same time. Re-purpose what has been hvm_io_pending() to hand back the
struct hvm_ioreq_vcpu instance found, and use it to replace the two
nested loops.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hvm/ioreq.c